export const sleep = time => {
  return new Promise(resolve => {
    setTimeout(resolve, time);
  });
};

export const isHttps = () => {
  return window.location.protocol === "https:";
};
